package cn.janyd.jmall.system.dal.db.dataobject;

import cn.janyd.jmall.mybatis.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * <p>
 * 部门
 * </p>
 *
 * @author janyd
 * @since 2020-08-14 20:31:16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class DepartmentDO extends BaseDO {


    /**
     * 父级部门
     */
    @TableField("pid")
    private Integer pid;

    /**
     * 部门名称
     */
    @TableField("name")
    private String name;

    /**
     * 排序值，值大在前
     */
    @TableField("sort")
    private Integer sort;


}
